package no.uials.distsys;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 *
 * @author Anders
 */
public interface DistSysService extends Remote {
    UserService getUserSystem(String uid, String pwd)
            throws RemoteException, DistSysException;
    AdminService getAdminSystem(String uid, String pwd)
            throws RemoteException, DistSysException;
    User addUser(String uid, String pwd, User.Role role)
            throws RemoteException, DistSysException;
    User addUser(User user)
            throws RemoteException, DistSysException;
    Article addArticle(String name, Double price, int stock, int aisle, int section, int shelf)
            throws RemoteException, DistSysException;
    Article addArticle(String name, Double price, int stock, Position pos)
            throws RemoteException, DistSysException;
}